import {createRouter, createWebHashHistory} from 'vue-router'

import BlogList from '../components/BlogList.vue'
import Carousel from "../components/Carousel.vue";
import BlogDetail from '../components/BlogDetail.vue'
import Mine from '../components/Mine.vue'
import Checkin from "../components/Checkin.vue";
import Record from '../components/Record.vue'
import BlogManage from '../components/BlogManage.vue'


const routes = [
  {
    path: '/',
    component: Carousel
  },
  {
    path: '/blog',
    component: BlogList
  },
  {
    path: '/detail',
    component: BlogDetail,
  },
  {
    path: '/mine',
    component: Mine,
  },
  {
    path: '/checkin',
    component: Checkin,
  },
  {
    path: '/record',
    component: Record
  },
  {
    path: '/manage',
    component: BlogManage
  }
]

export default createRouter({
  history: createWebHashHistory(),
  routes
})